<template>
  <NCard>
    <NvForm v-model:form="form" :option />
    {{ form }}
  </NCard>
</template>

<script setup lang="ts">
import type { NvFormOption } from 'nv-crud'
import { NCard } from 'naive-ui'
import { NvForm } from 'nv-crud'
import { ref } from 'vue'

const form = ref({})

const option: NvFormOption = {
  fields: {
    password1: { label: '密码1', type: 'password' },
    password2: { label: '密码2', type: 'password', props: { showPasswordOn: 'mousedown' } },
  },
}
</script>

<style scoped lang="scss"></style>
